<script setup>
</script>
<template>

    <div class="manu">
        <div class="item">
            <p>导航栏</p>
        </div>
        <div class="List">
            <ul>
                <li>
                    <RouterLink to="/index" active-class="active-link" exact-active-class="exact-active-link">首页
                    </RouterLink>
                </li>
                <li>
                    <RouterLink to="/index" active-class="active-link">我的档案</RouterLink>
                </li>
                <li>
                    <RouterLink to="/index" active-class="active-link">考试信息</RouterLink>
                </li>
                <li>
                    <RouterLink to="/index" active-class="active-link">近期活动</RouterLink>
                </li>
            </ul>
        </div>
    </div>
</template>
<style scoped>
.manu {
    margin: 5px;
    height: 98%;
    width: 300px;
    display: flex;
    background-color: rgb(32, 114, 87);
    flex-direction: column;
}

.item {
    height: 30px;
    width: 100%;
    background-color: #dedede;
}

.item p {
    line-height: 30px;
    margin-left: 20px;
    color: #585858;
}

.List {
    flex-grow: 1;
    width: 100%;
    background-color: #fdf9eb;
    display: flex;
    flex-direction: column;
}

ul {
    margin: 5px;
}
ul a {
  display: block;
  width: 100%;
  height: 60px;
  line-height: 60px;
  padding-left: 10px;
  border-bottom: 3px solid #22b346;
  transition: all 0.3s ease;
}

/* 激活状态样式 */
.active-link {
  background-color: #4CAF50;
  color: white;
  border-color: #388E3C;
}

.exact-active-link {
  background-color: #357a38;
  font-weight: bold;
}
</style>